class DynamicEntity {
  late String _title;
  late String _src;
  late int _desc;
  late String _id;
  late String _type;

  get title => _title;
  get src => _src;
  get desc => _desc;
  get id => _id;
  get type=>_type;

  static DynamicEntity fromJson(Map<String, dynamic> json) {
    DynamicEntity newEntity = DynamicEntity();
    newEntity._id = json['id'];
    newEntity._src = json['src'];
    newEntity._desc = json['desc'];
    newEntity._title = json['title'];
    newEntity._type = json['type'];
    return newEntity;
  }
}
